package com.df.userserver.api.user.service.impl;

import com.df.userserver.api.user.bean.UserInfo;
import com.df.userserver.api.user.service.IUserFeignService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: lichong
 * @email: li_chong@massclouds
 * @Date: 2020/5/13 10:55
 * @Description:
 */
@RestController
@Service("userFeignService")
public class UserFeignServiceImpl implements IUserFeignService {
    @Value("${server.port}")
    private Integer port;

    @Override
    public String getUserName(String name) {
        return name + "小明的端口号：" + port;
    }

    @Override
    public UserInfo getUserInfo(UserInfo userInfo) {
        return userInfo;
    }
}
